 package com.boyunv.chainduty.example01;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/8/19 21:12
 *@version 1.0
 */

public class HandlerC extends Handler {
     @Override
     public void handle(RequestData requestData) {
         System.out.println("HandleA 执行代码逻辑处理"+requestData.getData());
         requestData.setData(requestData.getData().replace("C",""));
         //判断是否继续向后处理
         if (successor!=null){
             successor.handle(requestData);
         }else {
             System.out.println("执行终止");
         }
     }
}
